
class GameProxy extends ResourceProxyBase {
    public static NAME: string = "GameProxy";//必须和excel导出文件一致
    public static Proxy: GameProxy = null;
    public constructor() {
        super(GameProxy.NAME);
    }
    public static getProxy() {
        if (!GameProxy.Proxy) {
            GameProxy.Proxy = new GameProxy();
        }
        return GameProxy.Proxy;
    }
    //登陆
    public login(data: Object) {
        GameVO.getVo().cbInsureEnabled = data["cbInsureEnabled"];
        GameVO.getVo().wFaceID = data["wFaceID"];
        GameVO.getVo().dwUserID = data["dwUserID"];
        GameVO.getVo().dwGameID = data["dwGameID"];
        GameVO.getVo().dwExperience = data["dwExperience"];
        GameVO.getVo().dwLoveLiness = data["dwLoveLines"];
        GameVO.getVo().lUserScore = data["playerMoney"];
        GameVO.getVo().lUserInsure = data["lUserInsure"];
        GameVO.getVo().cbGender = data["cbGender"];
        GameVO.getVo().cbMoorMachine = data["cbMoorMachine"];
        GameVO.getVo().szNickName = data["szNickName"];
        GameVO.getVo().szDynamicPass = data["szDynamicPass"];
        GameVO.getVo().szMobilePhone = data["szAccounts"];
        GameVO.getVo().cbMemberOrder = data["cbMemberOrder"];
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.OPEN_HALL);
    }

    //获取用户信息
    public getUserInfo(data: Object) {
        GameVO.getVo().szCompellation = data["szCompellation"];
        GameVO.getVo().szDwellingPlace = data["szDwellingPlace"];
        GameVO.getVo().szEMail = data["szEMail"];
        GameVO.getVo().szMobilePhone = data["szMobilePhone"];
        GameVO.getVo().szCompellation = data["szCompellation"];
        GameVO.getVo().szQQ = data["szQQ"];
        GameVO.getVo().szSeatPhone = data["szSeatPhone"];
        GameVO.getVo().szUserNote = data["szUserNote"];
    }

    //获取房间列表
    public getRoomList(data: Object) {
        GameVO.getVo().roomList = data["data"];
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.REFRESH_ROOM_IFO);
    }
    public modifyFaceid(data: Object) {
        GameVO.getVo().wFaceID = data["wFaceID"];
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.REFRESH_USER_INFO)
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.CLOSE_SPECIA_MODIFY)
    }
    //存取款成功
    public cqkCg(data: Object) {
        Global.tipShow(data["szDescribeString"])
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.REFRESH_SAFEBOX, data)
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.BACK_HALL_BY_GAME)

    }
    //取款失败
    public cqkSba(data: Object) {
        Global.tipShow(data["szDescribeString"])
    }
    //密码设置结果
    public cqkSb(data: Object) {
        game.AppFacade.instance.sendNotification(PanelNotify.HALL.PASS_SAFEBOX, data)

    }
}
